package ${packageName};

<#list imports as import>
import ${import};
</#list>

 /**   
 * @ClassName: C${underlineToCamel(sourceTable?lower_case,true?string)}Entity  
 * @Description:TODO(该类为数据中 表:${sourceTable} 对应的商业实体类.)   
 * @author: 李启联
 * @date:   ${.now}  
 * @version V1.0     
 * @Copyright: Copyright (c) 2018
 * 申明：本内容未经作者本人同意,禁止外泄以及用于其他的商业项目.
 */
@EntityAttribute(selectTable = "${sourceTable}", updateTable = "${sourceTable}", identityProperty = "${primaryKey[0].columnName}")
@SuppressWarnings("serial")
public class C${underlineToCamel(sourceTable?lower_case,true?string)}Entity extends Entity {
	<#list columns as col>
	<#if (col.columnComment)?length gt 0>
	// ${col.columnComment}
	</#if>
	private ${getDataType(col.dataType)} ${underlineToCamel(col.columnName?lower_case,false?string)};		
	</#list>
	
	<#list columns as col>
	public ${getDataType(col.dataType)} get${underlineToCamel(col.columnName?lower_case,true?string)}(){
		return this.${underlineToCamel(col.columnName?lower_case,false?string)};
	}
	public void set${underlineToCamel(col.columnName?lower_case,true?string)}(${getDataType(col.dataType)} ${underlineToCamel(col.columnName?lower_case,false?string)}){
		this.${underlineToCamel(col.columnName?lower_case,false?string)} = ${underlineToCamel(col.columnName?lower_case,false?string)};
	}
	
	</#list>
	
	public C${underlineToCamel(sourceTable?lower_case,true?string)}Entity(){
	}
	
	@Override
    public String toString(){
    	return " C${underlineToCamel(sourceTable?lower_case,true?string)}Entity ["
				<#list columns as col>
    	         <#if col_has_next>
    	       +" ${underlineToCamel(col.columnName?lower_case,false?string)} = " +${underlineToCamel(col.columnName?lower_case,false?string)} +" ,"
    	         <#else>
    	       +" ${underlineToCamel(col.columnName?lower_case,false?string)} = " +${underlineToCamel(col.columnName?lower_case,false?string)}   
    	         </#if>
    	         </#list> 
    	       +" ]";
    }
	
}